package com.kfm.base.ex;

public class Demo02 {

    public static void main(String[] args) {
        Person p = new Person();

        p.setName("张三");
        try {
            p.setAge(1000); // 可能产生异常的代码
        } catch (Exception ex){ // 捕获的异常
            // 处理异常
//            System.out.println("发生了异常");
        }

        System.out.println(p.getName()); //
        System.out.println(p.getAge()); //





    }

    public static void grow(){
        int old = 1999999999;
        Object[] arr = new Object[old + old >> 1];
    }
}
